<template>
    <div class="mine">
        <!-- <router-link to="/">mine</router-link> -->
        <button @click="clickme">mine</button>
    </div>
</template>

<script>
export default {
    methods:{
        clickme(){
            let flag = confirm("确定进入首页吗？")
            if(flag){
                //直接跳转   编程式导航
                this.$router.push("/")
            }
        }
    }
}
</script>
<style>

</style>
